<template>
    <view>
        <navBar :title="title"></navBar>
        <block v-if="classify_id">
            <List :classify_id="classify_id"></List>
        </block>
    </view>
</template>

<script>
    import List from '@/zunyi/components/List.vue';
    export default {
        components: {
            List
        },
        data() {
            return {
                title: '',
                classify_id: ''
            };
        },
        onLoad(opt) {
            if (opt.title) this.title = opt.title;
            if (opt.classify_id) this.classify_id = opt.classify_id;
        },
        methods: {}
    };
</script>

<style lang="scss">
    page {
        width: 100%;
        background-color: #f8f8f8;
        padding-bottom: 40rpx;
    }
</style>
